<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {

        $a=['a','b','c','d','e','f','g'];

        $b=['u1','u2'];
        $new=[];


        $all= count($b);

        echo "<hr>";

        foreach ($a as $v=>$k){

         echo   $vs= ceil($v % $all);


        }

        echo "<pre>";
        print_r($new);

        die;
        return $this->view->fetch();
    }

}
